package com.jiyun.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author 朱庆辉
 * @Date 2023/7/28 16:05
 * @Email 1018276870@qq.com
 */
@Data
public class Client implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String photo;
    private String name;
    private String userId;
    private String sex;
    private String info;
    @DateTimeFormat(pattern = "yyyy-MM-dd:hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd:hh:mm:ss",timezone = "Asia/Shanghai")
    private Date createDate;
    private String status;
    private Integer role;
    private Integer tid;
    private String username;
    private String password;
}
